﻿using AutoMapper;

namespace GroceryPriceBook.Core.Mappers
{
	public class AutoMapperConfiguration
	{
		/// <summary>
		/// Initialize the auto-mapper rules for the ViewModel <==> Model mappings
		/// </summary>
		public static void Configure()
		{
			Mapper.Initialize(map =>
			{
				map.AddProfile<Product>();
				map.AddProfile<ProductAmountUnit>();
				map.AddProfile<ProductCategory>();
				map.AddProfile<ProductManufacturer>();
				map.AddProfile<ProductQuantityUnit>();
				map.AddProfile<PurchaseLog>();
				map.AddProfile<PurchaseLogItem>();
				map.AddProfile<Store>();
			});
		}
	}
}
